<!--
* @fileName c-dialog.vue
* @author caoke
* @date 2023/10/16 16:08:56
* @version V1.0.0
* @description 
!-->
<template>
  <div>
    <el-dialog title="" :visible.sync="show" width="80%" :lock-scroll="false" :show-close="false"
      custom-class="dialog_wrap">
      <div v-loading="loading" element-loading-background="rgba(0, 0, 0, 0.2)" class="dialog_wrap_inner">
        <div class="dialogHeader"></div>
        <div class="dialog_cont">
          <slot />
        </div>
        <div class="dialog-footer">
          <slot name="footer" />
        </div>
      </div>

    </el-dialog>
  </div>
</template>

<script>
export default {
  name: '',
  props: {
    visible: Boolean,
    loading: Boolean
  },
  computed: {
    show: {
      get() {
        return this.visible
      },
      set(e) {
        this.$emit('update:visible', e)
      }
    }
  },
  data() {
    return {}
  },
  created() { },
  methods: {}
}

</script>
<style lang='scss' scoped>
/deep/.el-dialog {
  // border-radius: 8px;
}

/deep/ .el-dialog__header {
  // background-color: red;
  padding: 0px;
}

/deep/ .el-dialog__body {
  // background-color: yellow;
  // margin-top: 10px;
  padding: 0;
}


.dialogHeader {
  width: 100%;
  height: 40px;
  background: url('./dialogBg.png') no-repeat;
  background-size: 100% 100%;
}

.dialog_title {
  text-align: left;
  height: 40px;
  line-height: 40px;
  text-indent: 20px;
  border-bottom: 1px solid rgba(204, 204, 204, 1);
}

.dialog-footer {
  text-align: right;
  padding: 15px 20px 20px;
}

.dialog_cont {
  width: 100%;
  height: 350px;
  overflow: auto;
  padding: 15px 20px;
  box-sizing: border-box;
  text-align: left;

  ::v-deep .el-input {
    width: 90%;
  }
}
</style>